package com.xnx3.wangmarket.admin.entity;

import javax.persistence.*;
import java.sql.Timestamp;

import static javax.persistence.GenerationType.IDENTITY;

@Entity
@Table(name = "product")
public class Product implements java.io.Serializable {

    private Integer id;
    private Integer userId;
    private Integer siteColumnId;
    private String address;//产品地址
    private String prodoctDescription;//产品描述
    private Double price;//产品价格
    private String timestamps;//添加产品时间
    private String modifyTime;//修改产品时间
    private String imgPath;//图片路径
    private String productName;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getSiteColumnId() {
        return siteColumnId;
    }

    public void setSiteColumnId(Integer siteColumnId) {
        this.siteColumnId = siteColumnId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getProdoctDescription() {
        return prodoctDescription;
    }

    public void setProdoctDescription(String prodoctDescription) {
        this.prodoctDescription = prodoctDescription;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getTimestamps() {
        return timestamps;
    }

    public void setTimestamps(String timestamps) {
        this.timestamps = timestamps;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }


}
